package ccrClasses.layer2;

import ccrClasses.ICcr;

public class Frequency implements ICcr {
	
	public final static String OPEN_TAG = "<Frequency>";

	public final static String CLOSE_TAG = "</Frequency>";
	
	private Value value;
	
	public Frequency(Value value) {
		super();
		this.setValue(value);
	}
	
	public Frequency() {
		super();
	}

	@Override
	public String constructCcrString() {
		return new String(OPEN_TAG + value.constructCcrString() + CLOSE_TAG);
	}

	/**
	 * @param value the value to set
	 */
	public void setValue(Value value) {
		this.value = value;
	}

	/**
	 * @return the value
	 */
	public Value getValue() {
		return value;
	}

}
